import { HTTP } from './loading/HTTP';
import User from './UserManager';

export class global {
    // http请求
    public http: HTTP = HTTP.getInstance();
    public UsrMg: User = new User();
    // 建筑物对象数组
    public Buildings: Object[] = [];
    // 资源
    public Resources: Object[] = [];
    // 资源更新
    public ResourcesUpdate = {
        updateTime:5
    };
    // cityServerUrl
    public cityServerUrl: string = 'http://localhost:3001';
}

export const Global = new global();